package cn.wolfcode.car.business.domain;
import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Getter
@Setter
public class CustomerVisit {
    //拜访方式
   public static Integer visitType_visit = 1; //上门
   public static Integer visitType_phone = 2; //电话

    private Long id;              /** 唯一id*/

    private Long customerId;      /** 客户id*/

    private Customer customer;      /** 客户*/

    private Long linkmanId;       /** 联系人id*/

    private CustomerLinkMane customerLinkMane;  /** 联系人*/

    private Integer visitType = visitType_visit;      /** 拜访方式, 1 上门走访, 2 电话拜访*/

    private String visitReason;     /** 拜访原因*/

    private String content;         /** 交流内容*/

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date visitDate;         /** 拜访时间*/

    private Long inputUser;         /** 录入人*/

    private User user;          /** 录入人*/

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date inputTime;         /** 录入时间*/
}